package com.zy.admin;


import com.zy.common.utils.ip.IpAddressLog;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.core.env.Environment;
import springfox.documentation.oas.annotations.EnableOpenApi;


@EnableOpenApi
@EnableDiscoveryClient
@MapperScan(basePackages = {"com.zy.admin.**.mapper", "com.zy.oauth.**.mapper"})
@SpringBootApplication(scanBasePackages = {
        "com.zy.admin.**",
        "com.zy.oauth.**",
        "com.zy.common.**",
        "com.zy.config.common"
})
@EnableFeignClients(basePackages = {
        "com.zy.config.feign",
})
public class TAdminApplication {

    public static void main(String[] args) {
        Environment env = SpringApplication.run(TAdminApplication.class, args).getEnvironment();
        IpAddressLog.log(env);
    }


}
